package ace.tool.generate.code.impl.resolver.scheme.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author caspar
 * @date 2024/1/26 17:00
 */
public interface SchemaConstants {

  String GRAPHQL_ADMIN_CONTROLLER_GET_METHOD_SUFFIX = "Get";
  String GRAPHQL_ADMIN_CONTROLLER_ADD_METHOD_SUFFIX = "Add";
  String GRAPHQL_ADMIN_CONTROLLER_SAVE_METHOD_SUFFIX = "Save";
  String GRAPHQL_ADMIN_CONTROLLER_MODIFY_METHOD_SUFFIX = "Modify";
  String GRAPHQL_ADMIN_CONTROLLER_REMOVE_METHOD_SUFFIX = "Remove";
  String GRAPHQL_ADMIN_CONTROLLER_REMOVE_LOGIC_METHOD_SUFFIX = "RemoveLogic";
  String GRAPHQL_ADMIN_CONTROLLER_GET_LIST_METHOD_SUFFIX = "GetList";
  String GRAPHQL_ADMIN_CONTROLLER_SEARCH_METHOD_SUFFIX = "Search";

  /**
   * 架构默认graphql admin controller 的方法后缀
   */
  List<String> GRAPHQL_ADMIN_CONTROLLER_METHOD_SUFFIX_LIST =
      Arrays.asList(
          GRAPHQL_ADMIN_CONTROLLER_ADD_METHOD_SUFFIX,
          GRAPHQL_ADMIN_CONTROLLER_GET_METHOD_SUFFIX,
          GRAPHQL_ADMIN_CONTROLLER_SAVE_METHOD_SUFFIX,
          GRAPHQL_ADMIN_CONTROLLER_MODIFY_METHOD_SUFFIX,
          GRAPHQL_ADMIN_CONTROLLER_REMOVE_METHOD_SUFFIX,
          GRAPHQL_ADMIN_CONTROLLER_REMOVE_LOGIC_METHOD_SUFFIX,
          GRAPHQL_ADMIN_CONTROLLER_GET_LIST_METHOD_SUFFIX,
          GRAPHQL_ADMIN_CONTROLLER_SEARCH_METHOD_SUFFIX);
}
